<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html dir="ltr" lang="en-gb">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta http-equiv="imagetoolbar" content="no">

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title>发表新话题</title>

<link type="text/css" rel="Stylesheet"
	href="/PCT/StyleAll/styleLogIn.css" />

<link type="text/css" rel="Stylesheet" href="/PCT/StyleAll/styleAll.css" />

<script type="text/javascript">
	function formReset() {
		document.getElementById("myForm").reset();
	}
</script>
<style type="text/css">
.STYLE1 {
	font-size: 36px
}
</style>

</head>



<body class="browser-webkit can-transform has-shadows transform">

	<div class="header">
		<a> <img src="/PCT/image/Logo Small.png" width=1000px height=50px
			alt="Logo Small">
		</a>
	</div>

	<p>&nbsp;</p>

	<div class="page">

		<div id="page-header">
			<div id="search-box">
				<s:if test="#session.status.currentUser.userType == 1">病友：</s:if>
				<s:elseif test="#session.status.currentUser.userType == 2">医生：</s:elseif>
				<s:elseif test="#session.status.currentUser.userType == 3">管理员：</s:elseif>
				<a><s:property value="#session.status.currentUser.username" /></a>
				等级： <a><s:property value="#session.status.currentUser.rank" /></a>
				<img src="/PCT/image/2.png" width=15px height=15px> <a
					href=" <s:url action='logout' namespace='/secure'/>">退出</a>
			</div>

			<s:if test="#session.status.currentUser.userType != 0">
				<a
					href="<s:url action='redirectResult' namespace='/public'>
							<s:param name='redirectType' value='5' />
						 </s:url>"
					class="button2">账户管理</a>
			</s:if>
			<!-- <a href="/PCT/Account/manageAccount.jsp"><input type="submit" name="submit" value="账户管理" class="button2"></a> -->
			<a
				href="<s:url action='redirectResult' namespace='/public'>
							<s:param name='redirectType' value='10' />
						 </s:url>"
				class="button2">我的群</a>
			<form id="search" name="search" action="/PCT/public/search.action"
				style="display: inline">
				关键字：<input name="target" type="text" /> <select name="searchType">
					<option value="post">搜索帖子</option>
					<option value="topic">搜索主题</option>
					<option value="group">搜索群</option>
				</select> <input type="submit" value="GO" class="button2" />
			</form>
		</div>

		<div>

			<form id="myForm" action="public/PostTopic" method="post">

				<div class="panel">

					<div class="inner">
						<span class="corners-top"><span></span></span>

						<h2>病友互助社区 - 创建标题</h2>

						<fieldset class="fields2">

							<dl>

								<dt>
									<label for="title" name="title">标题：</label><br>
								</dt>

								<dd>
									<input type="text" tabindex="4" name="title" id="title"
										size="25" value="" class="inputbox autowidth" title="标题">

									<!--用户名不必填写，由数据库给出-->
							</dl>

							<dl>

								<dt>
									<label for="content" name="content">内容：</label><br>
								</dt>

								<dd>
									<textarea rows="10" tabindex="4" name="content" id="content"
										cols="40" value="" class="inputbox autowidth" title="内容"></textarea>
								</dd>


							</dl>

							<dl></dl>

							<dl></dl>

							<dl></dl>

							<dl></dl>

							<dl></dl>

							<dl></dl>

							<dl></dl>

							<dl></dl>

							<dl></dl>

						</fieldset>

						<span class="corners-bottom"><span></span></span>

					</div>

				</div>

				<div class="panel">

					<div class="inner">
						<span class="corners-top"><span></span></span>

						<fieldset class="submit-buttons">

							<input type="hidden" name="agreed" value="true"> <input
								type="hidden" name="change_lang" value="0"> <input
								type="hidden" name="confirm_id"
								value="1a39e1a5ae609742b5f463a842655abc"> <input
								type="button" onClick="formReset()" tabindex="9" value="重置"
								class="button1 default-submit-action"> <input
								type="submit" tabindex="9" name="submit" id="submit" value="发表"
								class="button1 default-submit-action"> <input
								type="hidden" name="creation_time" value="1331813360"> <input
								type="hidden" name="form_token"
								value="0c2e7da06f1f44fe3d8862e1a3eb446cd1b5d5e6">

						</fieldset>

						<span class="corners-bottom"><span></span></span>

					</div>

				</div>

			</form>

		</div>

	</div>

	</div>

	<div class="footer">

		<div class="copyright">

			<p class="copy-left">上海交通大学 软件学院</p>

			<p class="copy-right">
				设计风格 <a href=" http://www.artodia.com/">Artodia</a> 。
			</p>

		</div>

	</div>

</body>



</html>